import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/pages/Login'
import Main from '@/pages/Main'
import Config from '@/pages/Config'
import Notice from '@/pages/Notice'
import Location from '@/pages/Location'
import Me from '@/pages/Me'
import Menus from '@/pages/Menus'
import Contact from '@/pages/Contact'
import Card from '@/pages/Card'
import about from '@/pages/About' //关于我们
Vue.use(Router)

export default new Router({
    routes: [
        {
            path: '/login',
            name: 'login',
            component: Login
        },
        {
            path: '/',
            name: 'main',
            component: Main
        },
        {
            path: '/config',
            name: 'config',
            component: Config
        },
        {
            path: '/card',
            name: 'card',
            component: Card
        },
        {
            path: '/contact',
            name: 'contact',
            component: Contact
        },
        {
            path: '/message',
            name: 'message',
            component: Notice
        },
        {
            path: '/menus',
            name: 'menus',
            component: Menus
        },
        {
            path: '/me',
            name: 'me',
            component: Me
        },
        {
            path: '/location',
            name: 'location',
            component: Card
        },
        {
            path: '/about',
            name: 'about',
            component: about
        }
    ]
})
